package com.soft.sitegenerator.form;

import org.apache.struts.action.ActionForm;

import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.SimpleTemplate;

public class TemplateEditForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Component component = new DataBaseComponent();

	private SimpleTemplate template = (SimpleTemplate) component.getBean("simpleTemplatesHib");

	public String getText() {
		return template.getText();
	}

	public void setText(String text) {
		this.template.setText(text);
	}

	public Long getId() {
		return template.getId();
	}

	public void setId(Long id) {
		this.template.setId(id);
	}

	public SimpleTemplate getTemplate() {
		return template;
	}

	public void setTemplate(SimpleTemplate template) {
		this.template = template;
	}

}